package cn.zh.controller;

import cn.zh.service.MqReceiveService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@Slf4j
public class MqReceiveController {

    @Resource
    private MqReceiveService receiveService;

    @PostMapping("direct-msg")
    public void sendDirectMsg(@RequestBody String msg){
        receiveService.receiveMsg(msg);
    }
}
